home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1998 September
/
Macworld (1998-09).dmg
/
Serious Demos
/
DesignWorks 4.0.1 Demo PPC
/
Design Kits
/
PCB Shared Items
/
Scripts
/
PCB Pkg Script
< prev
next >
Wrap
Text File
|
1997-05-26
|
860b
|
34 lines
{
Copyright 1997 by Capilano Computing Systems Ltd.
Script to prompt for a package code for the selected devices.
First, turn off report generation.
}
$REPORTOFF
$PROGRESS $OFF
{
Find selected devices and pretend they're sorted so we can merge all values
in the package field into one.
}
$FIND $DEVICES $SELECTED
$SORT $DEVICES $RAW
$COMBDEVSON
{
If nothing's selected, quit
}
$IF($EQ($DEVCOUNT, 0))
$ALERT1(No devices are selected!)
$ABORT
$END
{
If we have more than one value in the selected devices, use an empty initial value
}
$DEVICES$SETVAR(_GPCB_Pkg, $IF($EQ($COUNTVALUES(&Package), 1))&Package$END)
{
Put up a prompt box. Note that we abort if the user presses Cancel
}
$SETVAR(_GPCB_Pkg, $PROMPT2(Enter package code for selected devices, &_GPCB_Pkg))
{
Set the package code in all devices.
}
$DEVICES$SETATTR(Package, &_GPCB_Pkg)